Tack.Condition.PreviousScene = new Class({
	Extends: Tack.Condition,

	args: { scene: function () { return this.scenes.getKeys(); } },
	type: 'PreviousScene',

	changeSceneReferences: function (oldName, newName) {
		if (this.scene == oldName) this.scene = newName;
	},

	initialize: function (scene) {
		this.scene = scene;
	},

	_evaluate: function (player, eventArgs) {
		return player.previousScene == this.scene;
	}
});
